﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Master/Admin.Master" AutoEventWireup="true"
    CodeBehind="AppraisalList.aspx.cs" Inherits="Besture.UI.AppraisalList" %>

<%@ Import Namespace="Besture.Common" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">
    <div class="listPage">
        <!--顶部操作按钮开始-->
		<div class="operateBar">
			<ul>  
				<li>
					<asp:LinkButton ID="lbAdd" runat="server" class="operate-add" OnClick="lbAdd_Click"><s class="icon-export-blue"></s>审核成功</asp:LinkButton>
				</li>
                <li>
					<asp:LinkButton ID="lbClose" runat="server" class="operate-add" OnClick="lbClose_Click"><s class="icon-export-blue"></s>取消审核</asp:LinkButton>
				</li>
			</ul>
        </div>
        <!--顶部操作按钮结束-->
        <cms:ASPxGridView ID="grid" ClientInstanceName="grid" runat="server" Width="99%"
            AutoGenerateColumns="False" KeyFieldName="ID" OnCustomCallback="GridCustomCallback" >
            <Columns>
                <cms:GridViewCommandColumn ShowSelectCheckbox="true" VisibleIndex="0" Width="50px"
                    FixedStyle="Left">
                    <HeaderTemplate>
                        <input type="checkbox" onclick="grid.SelectAllRowsOnPage(this.checked);" title="全选/全不选"
                            id="chkAll" runat="server" />
                    </HeaderTemplate>
                    <HeaderStyle HorizontalAlign="Center" />
                </cms:GridViewCommandColumn> 
				<cms:GridViewDataTextColumn Caption="操作" VisibleIndex="2" Width="50px" HeaderStyle-HorizontalAlign="Center"
                    CellStyle-HorizontalAlign="Center" FixedStyle="Left">
                    <DataItemTemplate>
						<div class="operateBox">
                            <a class="btn-text-edit" href="AppraisalSet.aspx?id=<%# Eval("ID")%>&hotId=<%# Eval("HotelsID")%>" title="编辑"></a>
                        </div>
                    </DataItemTemplate>
                </cms:GridViewDataTextColumn> 
                <cms:GridViewDataTextColumn Caption="酒店" VisibleIndex="3" Width="100" HeaderStyle-HorizontalAlign="Center" 
					CellStyle-HorizontalAlign="Center" FieldName="HotelsName">
					<Settings AutoFilterCondition="Contains"></Settings>
				</cms:GridViewDataTextColumn>
				<cms:GridViewDataTextColumn Caption="点评用户" VisibleIndex="4" Width="100" HeaderStyle-HorizontalAlign="Center" 
					CellStyle-HorizontalAlign="Center" FieldName="NickName">
					<Settings AutoFilterCondition="Contains"></Settings>
				</cms:GridViewDataTextColumn>
				<cms:GridViewDataTextColumn Caption="点评内容" VisibleIndex="5" Width="" HeaderStyle-HorizontalAlign="Center" 
					CellStyle-HorizontalAlign="Center" >
					 <DataItemTemplate>
					     <%# StringHelper.StringTruncat(StringHelper.RemoveHTML(Convert.ToString(Eval("Content"))),50,"...")  %>
					 </DataItemTemplate>
				</cms:GridViewDataTextColumn> 
				<cms:GridViewDataTextColumn Caption="位置满意度" VisibleIndex="7" Width="80" HeaderStyle-HorizontalAlign="Center" 
					CellStyle-HorizontalAlign="Center" FieldName="Location">
					<Settings AutoFilterCondition="Contains"></Settings>
				</cms:GridViewDataTextColumn>
				<cms:GridViewDataTextColumn Caption="设施满意度" VisibleIndex="8" Width="80" HeaderStyle-HorizontalAlign="Center" 
					CellStyle-HorizontalAlign="Center" FieldName="Facilities">
					<Settings AutoFilterCondition="Contains"></Settings>
				</cms:GridViewDataTextColumn>
				<cms:GridViewDataTextColumn Caption="服务满意度" VisibleIndex="9" Width="80" HeaderStyle-HorizontalAlign="Center" 
					CellStyle-HorizontalAlign="Center" FieldName="Service">
					<Settings AutoFilterCondition="Contains"></Settings>
				</cms:GridViewDataTextColumn>
				<cms:GridViewDataTextColumn Caption="卫生满意度" VisibleIndex="10" Width="80" HeaderStyle-HorizontalAlign="Center" 
					CellStyle-HorizontalAlign="Center" FieldName="Health">
					<Settings AutoFilterCondition="Contains"></Settings>
				</cms:GridViewDataTextColumn>
				<cms:GridViewDataTextColumn Caption="评价审核" VisibleIndex="11" Width="70" HeaderStyle-HorizontalAlign="Center" 
					CellStyle-HorizontalAlign="Center"  FieldName="CheckStatusName">
					<Settings AutoFilterCondition="Contains"></Settings> 
				</cms:GridViewDataTextColumn>
                <cms:GridViewDataDateColumn Caption="点评时间" VisibleIndex="12" Width="90" HeaderStyle-HorizontalAlign="Center" 
					CellStyle-HorizontalAlign="Center">
				     <DataItemTemplate>
				        <%#Convert.ToDateTime(Eval("AppraisalTime")).ToString("yyyy-MM-dd HH:mm:ss") %>
				    </DataItemTemplate>
				</cms:GridViewDataDateColumn>
            </Columns>
        </cms:ASPxGridView>
    </div> 
</asp:Content>
